﻿using System;
using System.ComponentModel;
using System.Runtime.Serialization;

namespace JY.Common.Enums
{
    /// <summary>
    /// 消息类型
    /// </summary>
    [Serializable]
    [DataContract]
    public enum MessageType
    {
        /// <summary>
        /// 消息
        /// </summary>
        [EnumMember]
        [Description("消息")]
        Info = 0,
        /// <summary>
        /// 成功
        /// </summary>
        [EnumMember]
        [Description("成功")]
        Success = 1,
        /// <summary>
        /// 警告
        /// </summary>
        [EnumMember]
        [Description("警告")]
        Warning = 2,
        /// <summary>
        /// 错误
        /// </summary>
        [EnumMember]
        [Description("错误")]
        Error = 3,
        /// <summary>
        /// 询问
        /// </summary>
        [EnumMember]
        [Description("询问")]
        Ask = 4,
        /// <summary>
        /// 严重
        /// </summary>
        [EnumMember]
        [Description("严重")]
        Fatal = 5
    }
}
